Xceed .NET Libraries Documentation
Xceed.Tar Assembly / Xceed.Tar Namespace / QuickTar Class / Untar Method / Untar(String,String,Boolean,Boolean,Boolean,Boolean,String[]) Method
The full path of the Tar archive. Cannot be empty.
The path to the destination folder in which to untar all items. Cannot be empty.
Boolean value indicating whether existing items in the destination should be replaced.
Boolean value indicating whether files contained within sub-folders of filesToTar items should be extracted.
Boolean value indicating whether the directory structure should be preserved in the destination folder.
Boolean value indicating if the tar file was compressed using GZip. Note: The GZip file retrieved must have the following format: tarFileName.gz. An exception is thrown if the Tar archive is not compressed.
The list of file paths to get from the Tar archive. Cannot be null.


    Untar(String,String,Boolean,Boolean,Boolean,Boolean,String[]) Method
    Extracts files from a Tar archive to a destination folder, specifying whether existing files should be replaced and paths should be preserved, whether the operation should be performed recursively, and whether the Tar archive is compressed with GZip.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub Untar( _
       ByVal tarFileName As String, _
       ByVal destinationFolder As String, _
       ByVal replaceExistingFiles As Boolean, _
       ByVal recursive As Boolean, _
       ByVal preservePaths As Boolean, _
       ByVal isTarCompressed As Boolean, _
       ByVal ParamArray filesToUntar() As String _
    ) 
     
    'Usage
     
    Dim tarFileName As String
    Dim destinationFolder As String
    Dim replaceExistingFiles As Boolean
    Dim recursive As Boolean
    Dim preservePaths As Boolean
    Dim isTarCompressed As Boolean
    Dim filesToUntar() As String
     
    QuickTar.Untar(tarFileName, destinationFolder, replaceExistingFiles, recursive, preservePaths, isTarCompressed, filesToUntar)

    Parameters

    tarFileName
    The full path of the Tar archive. Cannot be empty.
    destinationFolder
    The path to the destination folder in which to untar all items. Cannot be empty.
    replaceExistingFiles
    Boolean value indicating whether existing items in the destination should be replaced.
    recursive
    Boolean value indicating whether files contained within sub-folders of filesToTar items should be extracted.
    preservePaths
    Boolean value indicating whether the directory structure should be preserved in the destination folder.
    isTarCompressed
    Boolean value indicating if the tar file was compressed using GZip. Note: The GZip file retrieved must have the following format: tarFileName.gz. An exception is thrown if the Tar archive is not compressed.
    filesToUntar
    The list of file paths to get from the Tar archive. Cannot be null.
    Remarks
    This implementation of Tar is fully read/write compatible with the USTAR format. It is read compatible with GNU Tar archives whose entries do not use the header extensions of this format.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also